<script setup>
import { defineProps } from 'vue';
defineProps({
  breadMessage: Array
})
</script>
<template>
  <div class="bread">
    <a-breadcrumb>
      <a-breadcrumb-item v-for="(item, index) in breadMessage" :key="item">
        <a href="#" class="link" :class="{ fontBold: index === breadMessage.length - 1 }">{{ item }}</a>
      </a-breadcrumb-item>
    </a-breadcrumb>
    <h2>{{ breadMessage[breadMessage.length - 1] }}</h2>
  </div>
</template>
<style scoped lang="less">
.bread {
  background-color: #fff;
  // margin-top: 2px;
  height: 90px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
  padding: 10px 20px;

  .link {
    background-color: transparent;

    &:hover {
      color: rgb(64, 169, 255);
    }
  }

  .fontBold {
    color: black;
  }



}
</style>
